package com.baox.agridata.synchronous.service.impl;

import com.baox.agridata.synchronous.dao.TXDRTraffickingMapper;
import com.baox.agridata.synchronous.entity.TXDRTraffickingEntity;
import com.baox.agridata.synchronous.service.TXDRTraffickingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TXDRTraffickingServiceImpl implements TXDRTraffickingService {

    @Autowired
    private TXDRTraffickingMapper txdrTraffickingMapper;

    @Override
    public TXDRTraffickingEntity selectTXDRTraffickingById(String mid) {
        return txdrTraffickingMapper.selectTXDRTraffickingById(mid);
    }

    @Override
    public Integer insertIntoTXDRTrafficking(TXDRTraffickingEntity txdrTraffickingEntity) {
        return txdrTraffickingMapper.insertIntoTXDRTrafficking(txdrTraffickingEntity);
    }

    @Override
    public Integer updateTXDRTraffickingById(TXDRTraffickingEntity txdrTraffickingEntity) {
        return txdrTraffickingMapper.updateTXDRTraffickingById(txdrTraffickingEntity);
    }

    @Override
    public List<TXDRTraffickingEntity> selectTXDRTraffickingDataToChengDu(String startTime) {
        return txdrTraffickingMapper.selectTXDRTraffickingDataToChengDu(startTime);
    }
}
